package com.base.commonlib.bean;

import android.text.TextUtils;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;

/**
 * Created by arvin on 2018/10/26.
 */

@Entity
public class RoadEntity {


    /**
     * RoadNo : 10204
     * RoadName : 烟沪线（204国道）
     * ShowName : 烟沪线（204国道）
     */

    @Id(autoincrement = true)
    private Long _id;

    private String RoadNo;//路段id
    private String RoadName;//路段名
    private String ShowName;//路段名（同上）



    @Generated(hash = 1399412537)
    public RoadEntity(Long _id, String RoadNo, String RoadName, String ShowName) {
        this._id = _id;
        this.RoadNo = RoadNo;
        this.RoadName = RoadName;
        this.ShowName = ShowName;
    }

    @Generated(hash = 434816819)
    public RoadEntity() {
    }

    

    public String getRoadNo() {
        return RoadNo;
    }

    public void setRoadNo(String RoadNo) {
        this.RoadNo = RoadNo;
    }

    public String getRoadName() {
        return RoadName;
    }

    public void setRoadName(String RoadName) {
        this.RoadName = RoadName;
    }

    public String getShowName() {
        return ShowName;
    }

    public void setShowName(String ShowName) {
        this.ShowName = ShowName;
    }

    public Long get_id() {
        return this._id;
    }

    public void set_id(Long _id) {
        this._id = _id;
    }



    @Override
    public String toString() {
        return RoadName;
    }

    @Override
    public boolean equals(Object obj) {
        RoadEntity roadEntity=(RoadEntity)obj;
        return TextUtils.equals(RoadNo,roadEntity.getRoadNo());
    }
}
